package com.xuecheng.manage_cms.service;

import com.xuecheng.framework.domain.cms.CmsPage;
import com.xuecheng.framework.domain.cms.request.QueryPageRequest;
import com.xuecheng.framework.domain.cms.response.CmsPageResult;
import com.xuecheng.framework.domain.course.response.PreviewResult;
import com.xuecheng.framework.domain.course.response.PublishResult;
import com.xuecheng.framework.model.response.QueryResponseResult;

import java.util.List;

public interface CmsPageService {
    QueryResponseResult findList(int page, int size, QueryPageRequest queryPageRequest);

    CmsPageResult add(CmsPage cmsPage);

    CmsPageResult findById(String pageId);

    CmsPageResult update(String pageId,CmsPage cmsPage);

    CmsPageResult delete(String id);

    CmsPageResult savePageByCourse(CmsPage cmsPage);

    PublishResult oneKeyPublish(CmsPage cmsPage);
}
